import http from '../util/request.js'

export default {

    captcha:()=>{
        return http({
            url:'/login/captcha',
            method:'get'
        })
    },
    userLogin:(obj)=>{
        return http({
            url:'/login/toUserLogin',
            method:'post',
            params:obj
        })
    },
    loginUserInfo:(obj)=>{
        return http({
            url:'/login/loginUserInfo',
            method:'get',
            params:obj
        })
    },
    adminLogin:(obj)=>{
        return http({
            url:'/login/toAdminLogin',
            method:'post',
            params:obj
        })
    },
    loginAdminInfo:(obj)=>{
        return http({
            url:'/login/loginAdminInfo',
            method:'get',
            params:obj
        })
    }
}